<script>
var test = new Array();

test["a"] = 1;
for(key in test){
alert(key);	
}
</script>